-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
GH-140052: Add PyTuple_MakeSingle and PyTuple_MakePair #140132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
GH-140052: Add PyTuple_MakeSingle and PyTuple_MakePair #140132
Conversation
Misc/NEWS.d/next/Core_and_Builtins/2025-10-15-01-30-28.gh-issue-140052.08spgX.rst
Outdated
Show resolved
Hide resolved
This reverts commit ebb70c9.
Co-authored-by: Victor Stinner <[email protected]>
@vstinner I have made requested changes. Please take a look. |
Done, please take a look. |
Co-authored-by: Victor Stinner <[email protected]>
Co-authored-by: Pieter Eendebak <[email protected]>
Microbenchmarks:
Ubuntu 24.04, gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, same cpu, built with lto enabled
t - PyTuple_New + PyTuple_SetItem Microbenchmarks - sergey-miryanov@07f7c6a run scripts
|
As requested by @vstinner I have added a separate PR with two functions:
PyTuple_MakeSingle
andPyTuple_MakePair
.📚 Documentation preview 📚: https://cpython-previews--140132.org.readthedocs.build/